﻿using System;

namespace MySqlManager.DatabaseBuilder
{
    /// <summary>
    /// Indicates that is possible to create a MySQL database table from the class
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
    public class MySqlTableAttribute : Attribute
    {
        /// <summary>
        /// Name that will have the database table
        /// </summary>
        internal string TableName;

        /// <summary>
        /// Sets the initial count to the AutoIncrement start value
        /// </summary>
        public int AutoIncrementerStart = int.MaxValue;

        /// <summary>
        /// Initializes a new instance of the <see cref="MySqlDelete"/> class
        /// </summary>
        /// <param name="tableName">Name that will have the database table</param>
        public MySqlTableAttribute(string tableName)
        {
            this.TableName = tableName;
        }
    }
}
